import request from '@/utils/request'

// 查询商机项目立项列表
export function listOrderRegister(query) {
  return request({
    url: '/crm/orderRegister/list',
    method: 'get',
    params: query
  })
}

// 查询商机项目立项详细
export function getOrderRegister(orderRegisterId) {
  return request({
    url: '/crm/orderRegister/' + orderRegisterId,
    method: 'get'
  })
}

// 新增商机项目立项
export function addOrderRegister(data) {
  return request({
    url: '/crm/orderRegister',
    method: 'post',
    data: data
  })
}


// 获取立项表信息
export function getOrderRegisterInfo(data) {
  return request({
    url: '/crm/orderRegister/getOrderRegisterInfo',
    method: 'post',
    data: data
  })
}

// 修改商机项目立项
export function updateOrderRegister(data) {
  return request({
    url: '/crm/orderRegister',
    method: 'put',
    data: data
  })
}

// 删除商机项目立项
export function delOrderRegister(orderRegisterId) {
  return request({
    url: '/crm/orderRegister/' + orderRegisterId,
    method: 'delete'
  })
}

// 审核
export function audit(data) {
  return request({
    url: '/crm/orderRegister/audit',
    method: 'post',
    data: data
  })
}


